import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import actions from './action'
import getters from './getter'
import mutations from './mutation'
Vue.use(Vuex)


export default new Vuex.Store({ //导出vuex创建的仓库
  state,
  actions,
  mutations, //action通过mutations去改变数据
  getters, //getters相当于vue中的计算属性
})
